#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "LED.h"
#include "OLED.h"
#include "PWM.h"

uint8_t i;

int main(void)
{
	//OLED_Init();
	PWM_Init();
	
	while(1)
	{
		for(i = 0; i<=100;i++)
		{
			PWM_SetCompare3(i);
			PWM_SetCompare4(i);
			Delay_ms(20);
		}
		
		for(i = 0; i<=100;i++)
		{
			PWM_SetCompare3(100-i);
			PWM_SetCompare4(100-i);
			Delay_ms(20);
		}
		Delay_ms(40);
	}
}
